<template>
  <!-- 跟进记录信息 -->
  <div id="followRecordDetail">
    <el-form :model="form" label-width="100">
      <el-form-item label="名称:">
        <p>{{ form.followName }}</p>
      </el-form-item>
      <el-form-item label="客户:">
        <p @click="toCustomerDetail" class="click">{{ form.customerName }}</p>
      </el-form-item>
      <el-form-item label="跟进类型:">
        <p>{{ form.typeName }}</p>
      </el-form-item>
      <el-form-item label="跟进内容:">
        <p>{{ form.content }}</p>
      </el-form-item>
      <el-form-item label="跟进进度:">
        <p>{{ form.progress }}</p>
      </el-form-item>
      <el-form-item label="附件:" style="width: 100%">
        <other-files ref="otherFiles" :files="form.otherFileList"></other-files>
      </el-form-item>
      <!-- <el-form-item label="审核状态:" v-if="isReloadData" style="width: 100%">
        <p v-if="form.status == 0" style="color: #e6a23c">待审核</p>
        <p v-if="form.status == 1" style="color: #67c23a">通过</p>
        <p v-if="form.status == 2" style="color: #f56c6c">未通过</p>
      </el-form-item> -->
      <el-form-item label="创建时间:">
        <p>{{ form.createTime }}</p>
      </el-form-item>
      <el-form-item label="修改时间:" v-if="form.updateTime">
        <p>{{ form.updateTime }}</p>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import otherFiles from '@/components/otherFiles'
export default {
  name: 'followRecordDetail',
  data () {
    return {
      // form: {},
      followType: [],//跟进类型
      isReloadData: true,//局部刷新标识
      loading: false
    }
  },
  components: {
    otherFiles,
  },
  mounted () {


  },
  props: {
    form: {
      type: Object,
      required: true,
      default: () => {
        return {}
      }
    }
  },
  methods: {
    toCustomerDetail () {
      this.$router.push({
        path: '/customer/customerManagement/customerDetail',
        query: {
          id: this.form.customerId
        }
      })
    },
    relodPart () {
      this.isReloadData = false
      this.$nextTick(() => {
        this.isReloadData = true
      })
    }
  }
}
</script>
<style lang='scss' scoped>
</style>